package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.List;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.BaiKePhotoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetBaiKeTuKuListIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.ListListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetBaiKeTuKuListModel extends RetrofitBaseModel implements GetBaiKeTuKuListIface<BaiKePhotoBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetBaiKeTuKuListModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getBaiKeTuKuList(String encid, ListListener<BaiKePhotoBean> listListener) {
        Call<List<BaiKePhotoBean>> call = allService.getBaiKeTuKuList(encid);
        callenqueueList(call,listListener);
    }
}
